package com.xwli.business.export;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

@ContentRowHeight(20)
@HeadRowHeight(30)
@ColumnWidth(25)
public class PayApplyExcelDto {
    @ExcelProperty(
            value = {"公司名称"},
            index = 0
    )
    private String comName;
    @ExcelProperty(
            value = {"制单部门"},
            index = 1
    )
    private String unitName;
    @ExcelProperty(
            value = {"申请编号"},
            index = 2
    )
    private String applyNum;
    @ExcelProperty(
            value = {"付款类别"},
            index = 3
    )
    private String typeCode;
    @ExcelProperty(
            value = {"付款类型"},
            index = 4
    )
    private String detTypeCode;
    @ExcelProperty(
            value = {"合同号"},
            index = 5
    )
    private String conNum;
    @ExcelProperty(
            value = {"供应商"},
            index = 6
    )
    private String venName;
    @ExcelProperty(
            value = {"实际收款方"},
            index = 7
    )
    @ColumnWidth(30)
    private String actualVenName;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @ExcelIgnore
    private Date applyDateStart;
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @ExcelIgnore
    private Date applyDateEnd;

//get和set方法省略
}